<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--#config errmsg="" --><!-- saved from url=(0022)http://help.adobe.com/ -->
<html lang="en-us">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
        <meta name="lang" content="en-us" />
        <meta name="area" content="livedocs" />
        <title>InDesign CS4 * Create GREP styles</title>
        <meta name="product" content="$product" />
        <meta name="productv" content="" />
        <meta name="keywords" content="" />
        <script type="text/javascript" language="Javascript" charset="UTF-8"><!--[CDATA[
        var currentTreeNode = "WSE33E49F9-94CE-4043-AA51-4761408A63F4a.html";
// ]]--></script>
<script src="terms.js" type="text/javascript" language="Javascript" charset="UTF-8">...</script> <script src="help.js" type="text/javascript" language="Javascript" charset="UTF-8">...</script>  <script src="utilities.js" type="text/javascript" language="Javascript" charset="UTF-8">...</script> <script src="event.js" type="text/javascript" language="Javascript" charset="UTF-8">...</script> <script src="treeview.js" type="text/javascript" language="Javascript" charset="UTF-8">...</script> <script src="toc.js" language="Javascript" type="text/javascript" charset="UTF-8">..</script> 
<script type="text/javascript">
<!--[CDATA[
var headId = document.getElementsByTagName("head")[0];         
if (use_ie_6_behavior) {
    var linkId = document.createElement("link");
    linkId.href = "content-ie6.css";
    linkId.rel = "stylesheet";
    linkId.type = "text/css";
    headId.appendChild(linkId);
}
// ]]-->
</script>
<!--#include virtual="/livedocs/ssi/globalheader.ssi" -->
        <link rel="stylesheet" type="text/css" href="tree.css" />
        <link rel="stylesheet" type="text/css" href="content-fonts.css" />
        <link rel="stylesheet" type="text/css" href="content-hyperlinks.css" />
        <link rel="stylesheet" type="text/css" href="content.css" />
        <link rel="stylesheet" type="text/css" href="localeSpecific.css" />
    </head>
    <body id="content_body" onload="window.focus();">
        <a name="top"></a><div id="mnemonic">
            <div class="InDesign"><table><tr><td class="banner">InDesign CS4</td><td class="pod"><img src="images/PDF.gif" width="16" height="16" hspace="15" valign="50%" />&#160;&#160;
                     <a title="PDF" href="http://help.adobe.com/en_US/InDesign/6.0/indesign_cs4_help.pdf">
                         PDF (adobe.com) 
                    </a></td></tr></table></div>
        </div>
        <div id="searchbar">
<!-- BEGIN SEARCH CONTENT -->
            <form class="search_form" id="search" name="search" action="search.html" target="_self">
                <img src="images/search.png" />
<script type="text/javascript">
<!--[CDATA[
function clearSearch(){
    if (document.search.q.value == terms_AHV_SEARCH_BUTTON){document.search.q.value = ""}; 
}
document.write('<input class=\"search_input\" \
        name=\"q\" \
        id=\"q\" \
        type=\"text\" \
        maxlength=\"256\" \
        value=\"' + terms_AHV_SEARCH_BUTTON + '\" onclick=\"clearSearch()\"><\/input>'); 
// ]]-->


</script> 
            </form>
        </div>
<!-- BEGIN PAGE CONTENT WRAPPER -->
        <div id="page_content_wrapper">
<!-- BEGIN PAGE WRAPPER -->
<table id="page_content_table">
<tr>
<td id="col1">
<!-- BEGIN IONCOMMENTCOUNT -->
            <div id="ionComCount">
            </div>
<!-- END IONCOMMENTCOUNT -->
<!-- BEGIN GROUP TOC WRAPPER -->
            
<!-- END GROUP TOC WRAPPER -->
<!-- BEGIN NAV WRAPPER -->
            <div id="group_toc">
<script type="text/javascript">
<!--[CDATA[
if ( typeof(terms_BOOK_SHORT) != 'undefined' ) {
  document.write("<p>" + terms_BOOK_SHORT + "<\/p>");
}
// ]]-->


</script> 
            </div>
            <div id="nav_content">
            </div>
<!-- END NAV WRAPPER -->
</td>
<td id="col2">
<!-- BEGIN CONTENT WRAPPER -->
<!-- BEGIN BREADCRUMBS -->
            <p class="sharedproducts">TOPIC APPEARS IN: </p><p class="sharedproductindicators"><img src="images/indesignSharedIndicator.png" title="InDesign" /><img src="images/incopySharedIndicator.png" title="InCopy" /></p>
            <div id="breadcrumb">
                
<ul class="navigation"><li class="prev"><a accesskey="p" class="prev" href="WS08B3C481-5E02-4f32-A020-546E0E522EFFa.html" title="Create nested styles"><img src="images/blank.gif" alt="Previous" width="17" height="17" /></a></li><li class="next"><a accesskey="n" class="next" href="WS5CEDB81A-0011-4dc9-9DE8-AC7AD4C80076a.html" title="Object styles"><img src="images/blank.gif" alt="Next" width="17" height="17" /></a></li></ul><div class="hierarchy"><a href="WSCF4C9C54-6350-4bbe-9D0D-BDF0016D6C83a.html">Styles</a> /
     <a href="WSE33E49F9-94CE-4043-AA51-4761408A63F4a.html"><b>Drop caps and nested styles</b></a> 
     </div>

            </div>
<!-- END BREADCRUMBS -->
            <div id="content_wrapper">
<!-- BEGIN PAGE TITLE -->
                <h1>
                    Create GREP styles
                </h1>
<!-- END PAGE TITLE -->
                <div><p>GREP is an advanced,
pattern-based search technique. You can use GREP styles to apply
a character style to text that conforms to the GREP expression you specify.
For example, suppose you want to apply a character style to all
the phone numbers in text. When you create a GREP style, you select
the character style and specify the GREP expression. All paragraph
text that matches the GREP expression is formatted with the character
style.</p>
<div class="para"><div class="fignone"><a href="#" onclick="return showHideImage('sy_grep_style', this);">View full size graphic</a><img alt="" id="sy_grep_style" src="images/sy_grep_style.png" /><div class="figdesc">Using GREP style to format phone numbers with a character
style</div><br /><dl><dt class="dlterm">A.</dt>
<dd>Character style</dd><p class="dlseparator"></p><dt class="dlterm">B.</dt>
<dd>GREP expression</dd><p class="dlseparator"></p></dl>
</div></div>
<p>For a video on creating GREP styles, see <a href="http://www.adobe.com/go/lrvid4028_id" target="_blank">www.adobe.com/go/lrvid4028_id</a>.</p>
<ol><li><p>Do one of the following:</p>
<ul><li><p>To apply GREP
styling to individual paragraphs, select the paragraphs and choose
Grep Styles from the Paragraph or Control panel menu.</p>
</li>
<li><p>To use GREP styles in a paragraph style, create or edit a
paragraph style, and click the GREP Styling tab on the left side
of the Paragraph Style Options dialog box.</p>
</li>
</ul>
</li>
<li><p>Click New GREP Style.</p>
</li>
<li><p>Click to the right of Apply Style, and then specify a character
style. If you haven’t created a character style to use, choose New
Character Style and specify the formatting you want to use.</p>
</li>
<li><p>Click to the right of To Text and do any of the following
to construct a GREP expression:</p>
<ul><li><p>Enter the search expression
manually. (See <a href="WSa285fff53dea4f8617383751001ea8cb3f-6f59a.html">Metacharacters for searching</a>.)</p>
</li>
<li><p>Click the Special Characters For Search icon to the right
of the To Text field. Choose options from the Locations, Repeat,
Match, Modifiers, and Posix submenus to help construct the GREP
expression. </p>
</li>
</ul>
</li>
<li><p>Click OK.</p>
</li>
</ol>
</div>

                <div id="related">
                    <div class="separator">&#160;</div>
                    <div><p>&#160;<a href="WS1952D538-1335-4b1d-BA5E-FA5A176FDC9Fa.html">Search using GREP expressions</a></p>
</div>
                    <p><a href="http://www.adobe.com/go/lrvid4028_id" title="http://www.adobe.com/go/lrvid4028_id">GREP styles video (adobe.com)</a></p>
                </div>
                <div id="footer">
                    <p><img src="images/Community.png" />&#160;<a title="community help (adobe.com)" href="http://www.adobe.com/go/lr_InDesign_community_en">community help (adobe.com)</a></p>
<!-- BEGIN IONCOMMENTS -->
                    <div id="ionComHere">
                    </div>
<!-- END IONCOMMENTS -->
<!--#include virtual="ionComments.ssi" -->
                    <p id="creativecommons"><a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" id="creativecommons_text"><img id="creativecommons_img" src="images/CC.png" alt="This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License" /></a></p>
                </div>
            </div>
<!-- END CONTENT WRAPPER -->
</td>
</tr>
</table>
        </div>
<!-- END PAGE CONTENT WRAPPER -->
<script type="text/javascript">
<!--[CDATA[
scrollToNameAnchor();
// ]]-->
</script> 
<!--#include virtual="/livedocs/ssi/globalfooter.ssi" -->
<!--#include virtual="/ubi/analytics/analytics_ssi.html" -->
    </body>
</html>